.class Lcom/waiqin365/lightapp/kehu/x;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    const v2, 0x7f08080c

    const/4 v4, 0x1

    const/4 v3, 0x0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/kehu/a/a/ax;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->dismissProgressDialog()V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/ax;->b()Z

    move-result v1

    if-eqz v1, :cond_1

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/a/a/ax;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/a/a/ax;->e:Ljava/util/ArrayList;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->a(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->a(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Landroid/widget/LinearLayout;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->b(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-static {v0, v1, v2, v4, v4}, Lcom/waiqin365/lightapp/kehu/c/b;->a(Landroid/app/Activity;Landroid/widget/LinearLayout;Ljava/util/ArrayList;ZZ)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->c(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/kehu/a/a/ac;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/ac;->b()Z

    move-result v1

    if-eqz v1, :cond_5

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/a/a/ac;->e:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/a/a/ac;->e:Ljava/lang/String;

    invoke-static {v1, v2, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :cond_2
    const-string/jumbo v1, "1"

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/a/a/ac;->d:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string/jumbo v0, "0"

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->d(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-static {v0}, Lcom/waiqin365/base/db/offlinedata/d;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/d;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->d(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Ljava/lang/String;

    move-result-object v1

    const-string/jumbo v2, "2"

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/db/offlinedata/d;->d(Ljava/lang/String;Ljava/lang/String;)V

    :cond_3
    :goto_1
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v1, "isModify"

    invoke-virtual {v0, v1, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-virtual {v1, v3, v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->setResult(ILandroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->back()V

    goto/16 :goto_0

    :cond_4
    const-string/jumbo v0, "1"

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->d(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-static {v0}, Lcom/waiqin365/base/db/offlinedata/d;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/d;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->d(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Ljava/lang/String;

    move-result-object v1

    const-string/jumbo v2, "3"

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/db/offlinedata/d;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->e(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/x;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1e
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
